// less 提到公用 减少打包的时候css体积
@import "./mixins.less";
@import "./variables.module.less";

.hit-asyncList {
  position: fixed;
  width: 500px;
  bottom: 0px;
  right: 30px;
  display: block;
  visibility: visible;
  z-index: 9999;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  box-shadow: 0 0 10px #ccc;
  background: #fff;

  &-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f7faff;
    padding: 8px 15px;

    h3 {
      font-size: 16px;
    }

    &__icon {
      cursor: pointer;
    }
  }

  &.is-open {
    .hit-asyncList-container {
      height: 300px;
    }
  }

  .hit-asyncList-container {
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.03, 1, 0.93, 1);
    height: 0;

    .list-header {
      display: flex;
      align-items: center;
      height: 35px;
      padding: 0 10px;
      border-bottom: 1px solid #f2f6fd;

      &>span {
        font-size: 14px;
      }
    }

    .list-container {
      flex: 1;
      color: #424e67;
      padding: 0 10px;
      padding-bottom: 50px;
      .scroll-bar;

      li {
        display: flex;
        align-items: center;
        line-height: 30px;
        padding: 5px 0;
        border-bottom: 1px solid #f0f2f5;
      }
    }

    .list-header,
    .list-container {
      .file-name {
        flex: 1;
      }

      .file-status {
        width: 120px;
        text-align: center;
      }

      .file-operate {
        width: 80px;
        text-align: center;
      }
    }
  }
}

.hit-avatar {
  overflow: hidden;
  margin: 0 auto;

  .ant-image {
    width: 100%;
    height: 100%;
  }

  img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  &-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    color: @text-color-secondary;

    span {
      font-size: 12px;
      line-height: 1.1;
      white-space: nowrap;
      display: inline-block;
      transform: scale(.8);
    }
  }
}

.hit-importDialog {
  &-head {
    padding: 0 16px;

    .file-title {
      display: flex;
      align-items: center;
      width: 100%;
      font-size: 14px;
      line-height: 1.7;
      padding: 2px 5px;
      margin: 5px 0 10px 0;
      color: #1890ff;

      &:hover {
        background: #fafafa;

        .del-icon {
          opacity: 1;
          visibility: initial;
        }
      }

      .del-icon {
        color: #f5222d;
        margin-left: auto;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        cursor: pointer;
      }
    }

    .ant-upload-btn {
      padding: 35px 0 20px 20px;
    }

    ::v-deep(.ant-upload-btn) {
      padding: 35px 0 20px 20px;
    }

    &-cont {
      display: flex;
      align-items: flex-end;
      text-align: left;

      .hit-svgIcon {
        font-size: 80px;
        margin-right: 10px;
      }

      .cont-tips1 {
        font-size: 14px;
        line-height: 1.2;
      }

      .cont-tips2 {
        font-size: 12px;
        line-height: 1.2;
        color: rgba(0, 0, 0, 0.45);
      }

      .ant-space {
        margin-bottom: 5px;
      }
    }
  }

  &-form {
    margin-top: 30px;
  }

  &-desc {
    margin-top: 30px;

    p {
      margin-bottom: 0;
    }

    ::v-deep(p) {
      margin-bottom: 0;
    }

    &__divider {
      margin: 0 0 10px 0 !important;
    }
  }
}

.hit-SlideVerify.drag {
  position: relative;
  background-color: #e8e8e8;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;

  .validate-error {
    font-size: 14px;
    color: @error-color;
    line-height: 1;
    text-align: left;
    margin-top: 3px;
  }

  .handler {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    cursor: move;
  }

  .handler_bg {
    background: #fff url("") no-repeat center;
  }

  .handler_ok_bg {
    background: #fff url("") no-repeat center;
  }

  .drag_bg {
    background-color: @success-color;
    height: 40px;
    width: 0px;
  }

  .drag_text {
    position: absolute;
    font-size: 14px;
    top: 0px;
    width: 100%;
    text-align: center;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
  }
}

.hit-state {
  position: relative;

  &.is-primary::after {
    background-color: @primary-color;
  }

  &.is-success::after {
    background-color: @success-color;
  }

  &.is-warning::after {
    background-color: @warning-color;
  }

  &.is-error::after {
    background-color: @error-color;
  }

  &.is-info::after {
    background-color: @info-color;
  }

  &::after {
    position: absolute;
    content: " ";
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }
}

.hit-svgIcon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

.hit-table {
  width: 100%;

  &-wrapper {
    background-color: white;
    padding: @space-p;

    &-hd {
      display: flex;
      align-items: center;
      margin-bottom: 10px;

      .hit-table-wrapper-tools {
        margin-left: auto;
        font-size: 16px;
      }
    }
    &-tips{
      margin-bottom: 10px;
    }
  }

  &-search {
    background-color: white;
    padding: 20px 20px 0;
    margin-bottom: @miniSpace;

    .open-btn {
      padding-right: 2px;
      padding-left: 2px;

      .anticon {
        margin-left: 4px;
      }
    }

    .table-search__item {
      margin-bottom: 20px;
    }
  }
}

.hit-table-colSet-hd {
  padding-top: 3px;
  padding-bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.hit-table-tool-popover {
  .ant-popover-inner-content {
    padding: 4px 0 8px;
  }
}

.hit-table-colSet {
  .ant-tree-list {
    .ant-tree-switcher {
      width: 16px;
    }

    .ant-tree-checkbox {
      margin-right: 2px;
    }
  }

  &-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    &-right {
      margin-left: auto;
    }

    &-icon {
      margin-right: 4px;
      color: #606266;
      .middle-icon{
        color: #cccccc;
      }
    }

    &:hover {
      a {
        visibility: initial;
        opacity: 1;
      }
    }

    a {
      visibility: hidden;
      opacity: 0;
    }

    a:first-of-type {
      margin-left: 5px;
    }

    a:not(:last-child) {
      margin-right: 4px;
    }
  }
}


.hit-tooltip {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hit-treeNode {
  display: inline-flex;
  align-items: center;
  flex: 1;
  width: 100%;
  overflow: hidden;
  cursor: pointer;

  &:hover {
    .hit-treeNode__actions {
      opacity: 1;
      visibility: initial;
    }
  }

  &__title {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    .is-current {
      color: #f50;
    }

    ::v-deep(.is-current) {
      color: #f50;
    }
  }

  &__actions {
    margin-left: auto;
    padding-left: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease;
  }
}